package com.cems.service;

import com.cems.mapper.ForumMapper;
import com.cems.pojo.CommentReply;
import com.cems.pojo.ForumArticle;
import com.cems.pojo.ForumComment;
import com.cems.pojo.ForumCommentBig;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @InterfaceName ForumService
 * @Author 陈新予(blank)
 * @Date 2021/5/18
 * @Version 1.0
 */

public interface ForumService {
    int delArticeById(int id);

    List<ForumArticle> getArticle();

    List<ForumComment> getComment();

    List<CommentReply> getReply();

    List<CommentReply> getReplyByComment(int id);

    void updateArticle(int id, String status);

    void delReply(int id);

    ForumArticle getArticleById(int id);

    List<ForumCommentBig> getForumCommentListByArt(int id);

    int addComment(Map<String, String> map);

    void addReply(Map<String, String> map, int id);

    void addForum(Map<String, Object> map);

    List<ForumArticle> getAllArticle2();

    List<ForumArticle> selArticleByUId(int userId);
    ForumArticle  selArticleById(int id);
    int delCommentById(Map<String,Object> map);
    List<ForumComment> selForCommentById(int artId);

    //回收站的帖子
    List<ForumArticle> selDelArticleByUId(int artId);
}
